package com.i7time.entity;

import java.io.Serializable;

/**
 * Created by Hsia on 16/6/3.
 */
public class User  implements Serializable{
    private long id;
    private String username;
    private String password;
    private String nick_name;
    private String sex;
    private String tel;
    private String avatar;
    private String birthday;
    private String isThirdLogin;
    private String thirdLoginId;
    private String pictures;
    private String isBusiness;

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNick_name() {
        return nick_name;
    }

    public void setNick_name(String nick_name) {
        this.nick_name = nick_name;
    }


    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }



    public String getThirdLoginId() {
        return thirdLoginId;
    }

    public void setThirdLoginId(String thirdLoginId) {
        this.thirdLoginId = thirdLoginId;
    }

    public String getPictures() {
        return pictures;
    }

    public void setPictures(String pictures) {
        this.pictures = pictures;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getIsThirdLogin() {
        return isThirdLogin;
    }

    public void setIsThirdLogin(String isThirdLogin) {
        this.isThirdLogin = isThirdLogin;
    }

    public String getIsBusiness() {
        return isBusiness;
    }

    public void setIsBusiness(String isBusiness) {
        this.isBusiness = isBusiness;
    }

    public  User(){

    }

    public User(long id, String username, String password, String nick_name, String sex, String avatar, String birthday, String isThirdLogin, String thirdLoginId, String pictures, String isBusiness,String tel) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.nick_name = nick_name;
        this.sex = sex;
        this.avatar = avatar;
        this.birthday = birthday;
        this.isThirdLogin = isThirdLogin;
        this.thirdLoginId = thirdLoginId;
        this.pictures = pictures;
        this.isBusiness = isBusiness;
        this.tel=tel;
    }

    @Override
    public boolean equals(Object o) {
        return this.id==((User)o).id;
    }
}
